
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>https://www.tweenmax.com.cn/index.html</title>
</head>
<script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/16327/gsap-latest-beta.min.js"></script>
<link rel="stylesheet" href="../../common.css">
<style>
  .box {
    width: 50px;
    height: 50px;
    position: relative;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    line-height: 50px;
    text-align: center;
    color: #333;

  }

  .green {
    background-color: #6fb936;
  }

  .orange {
    background-color: #f38630;
  }

  .gray,
  .grey {
    background-color: #989898;
  }
</style>

<body>
  <div class="box green"></div>
  <div class="box orange"></div>
  <div class="box grey"></div>
</body>
<script>
  gsap.to(".box", {
    rotation: 27,
    x: 400,
    duration: 10
  });
</script>

</html>